package com.example.elderlycare.service.Impl;

import java.util.Map;

public class Factory {
    public static BaseRoster getRosterFactory(Map<String, Object> params) {
        if (!params.containsKey("file")) {
            return new RosterGenerateByParams();
        }
        return new RosterGenerateByTemplate();
    }
}
